<?php

$route->any('login', 'AuthController@login')->name('api.login');
$route->any('test', 'TestController@init');

$route->group(['middleware' => 'api.auth'], function ($route) {
    $route->post('user/store', 'UserController@store');

    $route->get('init', 'ConfigController@init');
    $route->post('car/flow', 'CarController@flow');
    $route->get('car/index', 'CarController@index');
    $route->any('car/cancel', 'CarController@cancel');
    $route->get('car/info', 'CarController@info');

});
